
from flask_script import Manager
from flask_migrate import Migrate,MigrateCommand
from toutiao import app,db

#Manager管理app
manager=Manager(app)
#添加迁移指令
Migrate(app,db)
manager.add_command('db',MigrateCommand)
#无需db init


if __name__ == '__main__':
    manager.run()
